package cn.edu.xmu.oomall.customer.controller.vo;

import cn.edu.xmu.javaee.core.aop.CopyFrom;
import cn.edu.xmu.oomall.customer.dao.bo.Coupon;
import cn.edu.xmu.oomall.customer.dao.bo.Customer;
import cn.edu.xmu.oomall.customer.mapper.openfeign.Po.CouponAct;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.checkerframework.common.returnsreceiver.qual.This;

/**
 * @author Suave
 * @date 2024/12/20
 */
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@CopyFrom({Coupon.class})
public class CouponVo {
    private Long id;
    private String name;
    private String couponSn;
    private CouponAct activity;

    public CouponVo(Coupon coupon){
        this();
        this.setActivity(coupon.getCouponAct());
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCouponSn() {
        return couponSn;
    }

    public void setCouponSn(String couponSn) {
        this.couponSn = couponSn;
    }

    public CouponAct getActivity() {
        return activity;
    }

    public void setActivity(CouponAct activity) {
        this.activity = activity;
    }
}
